package cn.com.blueInfo.bpm.template.repository;

import cn.com.blueInfo.bpm.template.entity.ParallelGateway;
import cn.com.blueInfo.bpm.template.request.ParallelGatewayDTO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 并行网关 数据服务类
 * @author suxch
 * @since 2025-09-01 19:30:44
 */
public interface ParallelGatewayRepository extends IService<ParallelGateway> {

    /**
     * 新增并行网关
     * @param parallelGateway 并行网关参数
     */
    Integer createParallelGateway(ParallelGateway parallelGateway);

    /**
     * 批量新增并行网关
     * @param parallelGatewayList 并行网关参数批量
     */
    Integer batchCreateParallelGateway(List<ParallelGateway> parallelGatewayList);

    /**
     * 删除并行网关
     * @param parallelGatewayId 并行网关ID
     */
    Integer deleteParallelGateway(Long parallelGatewayId);

    /**
     * 批量删除并行网关
     * @param parallelGatewayIdList 并行网关ID批量
     */
    Integer batchDeleteParallelGateway(List<Long> parallelGatewayIdList);

    /**
     * 更新部分并行网关
     * @param parallelGateway 并行网关参数
     */
    Integer updateParallelGatewayPartial(ParallelGateway parallelGateway);

    /**
     * 更新全部并行网关
     * @param parallelGateway 并行网关参数
     */
    Integer updateParallelGateway(ParallelGateway parallelGateway);

    /**
     * 查询一条并行网关
     * @param parallelGatewayId 并行网关ID
     */
    ParallelGateway getParallelGatewayById(Long parallelGatewayId);

    /**
     * 分页查询并行网关
     * @param parallelGatewayQueryDTO 并行网关参数
     */
    Page<ParallelGateway> getParallelGatewayPage(ParallelGatewayDTO.QueryDTO parallelGatewayQueryDTO);

    /**
     * 根据条件查询 并行网关 数量
     * @param parallelGatewayQueryDTO 并行网关参数
     */
    Long getParallelGatewayCount(ParallelGatewayDTO.QueryDTO parallelGatewayQueryDTO);

    /**
     * 根据条件查询 并行网关
     * @param parallelGatewayQueryDTO 并行网关参数
     */
    List<ParallelGateway> getParallelGatewayList(ParallelGatewayDTO.QueryDTO parallelGatewayQueryDTO);

}
